package com.example.supermarket.service;

import com.example.supermarket.pojo.Customer;
import com.example.supermarket.pojo.Item;
import com.example.supermarket.pojo.LineItem;
import com.example.supermarket.pojo.Order;

import java.util.List;

public interface CustomerService {
    void createOrder(Order order);

    void createLineItem(LineItem lineItem);

    Customer getCustomerInfo();

    Integer findOrderId(Order order);

    Order findCustomerOrder(Integer shopId);

    List<LineItem> findItemByOrderId(Integer orderId);

    Order findOrderByOrderId(Integer orderId);

    void deleteOrder(Integer orderId);

    void payOrder(Integer orderId);

    List<Order> findHistoryOrder();

    Customer getCustomerByCustomerId(Integer customerId);
}
